package com.wxs.common.service;

import java.util.List;

import com.wxs.common.pojo.Resource;

/**
 * 菜单权限
 * 
 * @author admin
 *
 */
public interface ResourceService {
	public List<Resource> queryForList(Integer roleGroupId);

	public List<Resource> listAll();

	public List<Resource> treeList();

	public List<Resource> listAllByRoleid(Integer id);

	public int saveResource(Resource resource);

	public int editResource(Resource resource);

	public Boolean checkName(String name, Integer id);

	public Resource findById(Integer id);

	public void deleteById(Integer id);
}
